import Taro, {Component, useEffect, useState, useCallback} from '@tarojs/taro'
import {View, WebView} from '@tarojs/components'

function OuterPage() {
  const [navUri, setNavUri] = useState('')
  useEffect(() => {
    const navUrl = this.$router.params.uri
    console.log(navUrl, 'navUrl')
    setNavUri(navUrl)
  }, [])

  return (
    <View style={{height: '100%'}}>
      <WebView src={navUri}></WebView>
    </View>
  )
}

OuterPage.config = {
  navigationBarTitleText: ``,
}

export default OuterPage
